package com.aboat.action;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * 退出按钮监听
 *
 * @author aboat
 * @email clear_windy@yeah.net
 * @create 2017-04-07 20:11
 */
public class QuitListener implements ActionListener {
    @Override
    public void actionPerformed(ActionEvent e) {
        if(JOptionPane.showConfirmDialog(null,"退出","提示",JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {


            System.exit(0);
        }
    }
}
